package com.mmdccj.yugu.service;

import com.github.pagehelper.PageInfo;
import com.mmdccj.yugu.dto.CommentDto;
import com.mmdccj.yugu.entity.Comment;

/**
 * @Author: star_
 * @date: 2023-12-11 20:17
 */
public interface CommentService {
    void insertComment(Comment comment);

    PageInfo<CommentDto> selectComments(String id, String typeId, int currentPage, int pageSize, boolean sortByLikes);

    boolean like(String userId, String postId);
}
